import Layout from '@/layout'

const storeRouter = {
  path: '/store',
  component: Layout,
  redirect: '/stockInfo',
  name: '库存管理',
  meta: {
    title: '库存管理',
    icon: 'tree-table',
    noCache: true,
    roles: ['myClinic']
  },
  children: [
    {
      path: '/stockInfo',
      component: () => import('@/views/store/stock'),
      name: 'stockInfo',
      meta: { icon: 'edit', title: '仓库管理', roles: ['clinic:info'] }
    },
    {
      path: '/catalogInfo',
      component: () => import('@/views/store/catalog'),
      name: 'catalogInfo',
      meta: { icon: 'edit', title: '商品目录', roles: ['clinic:info'] }
    },
    {
      path: '/productInfo',
      component: () => import('@/views/store/product'),
      name: 'productInfo',
      meta: { icon: 'edit', title: '商品管理', roles: ['clinic:info'] }
    },
    {
      path: '/productKeep',
      component: () => import('@/views/store/productDetail'),
      name: 'productKeep',
      meta: { icon: 'edit', title: '库存管理', roles: ['clinic:info'] },
      hidden: true,
    }
    ]
}

export default storeRouter
